package com.preskool.mapper;

import com.preskool.dto.ActionResult;
import com.preskool.po.Hostel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface HostelMapper {
//    int insert(Hostel record);
//
//    int insertSelective(Hostel record);

    List<Hostel> findAllHostel(@Param("currentPage") int currentPage,@Param("pageSize") int pageSize);


    Integer delHostel(@Param("roomNo") Integer roomNo);


    Integer update(Hostel hostel);

    Hostel findOneByroomNo(@Param("roomNo") Integer roomNo);

    Integer add(Hostel hostel);

    List<Hostel> findByType(String roomType);

}